/// @description Insert description here
// You can write your code in this editor

if(!place_free(x+hspeed,y)){
	hspeed = -hspeed;
}
with(collision_line(x+10,y+20,x+38,y+20,objPlayer,0,0)){
	if(place_free(x+other.hspeed,y)){
		x+=other.hspeed;
	}
}